package text3;

public class GoodText {
    public static void main(String[] args) {
        Good[]arr=new Good[3];
        Good g1= new Good("001","HUAWEI",4000,100);
        Good g2= new Good("002","VIVO",2000,100);
        Good g3= new Good("003","OPPO",5000,100);
        arr[0]=g1;
        arr[1]=g2;
        arr[2]=g3;
        for (int i = 0; i < arr.length; i++) {
            Good goods=arr[i];
            System.out.println(goods.getId()+","+goods.getName()+","+goods.getPrice()+","+goods.getCount());

        }
    }
}
